<!DOCTYPE html>
<html ng-app="myApp">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="app/styles/bootstrap.min.css">
        <link rel="stylesheet" href="app/styles/signin.css">
        <title>登录</title>
    </head>
    <body>

        <div class="signbody" ng-controller = "RegesterCtrl">
            <ul class="nav nav-tabs" ng-init="vm.activeTab=1">
                <li ng-class="{active: vm.activeTab == 1}">
                    <a href="javascript:;" ng-click="vm.activeTab = 1">
                        <h3>登录</h3>
                    </a>
                </li>
                <li ng-class="{active: vm.activeTab == 2}">
                    <a href="javascript:;" ng-click="vm.activeTab = 2">
                        <h3>注册</h3>
                    </a>
                </li>
            </ul>

            <div class="tab-content tab-bordered">

                <div class="tab-panel" ng-show="vm.activeTab == 1">
                    <form class="form-signin" name="loginform" action="services/auth/login.html" method="post">
                        <input type="text" id="inputuser" name="username" value="" class="form-control" placeholder="请输入用户名" required autofocus>
                        <input type="password" id="userpass" name="password" value="" class="form-control" placeholder="请输入密码" required>
                        <div>
                            <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
                        </div>
                    </form>
                    <a href="/apps/lostPass.html">忘记密码？</a>
                </div>

                <div class="tab-panel" ng-show="vm.activeTab == 2">
                    <form class="form-signin" name="loginform">
                        <input type="text" ng-model="user.userid" name="userid" value="" class="form-control" placeholder="请输入用户ID" required autofocus>
                        <input type="text" ng-model="user.username" name="username" value="" class="form-control" placeholder="请输入用户名" required>
                        <input type="email" ng-model="user.useremail" name="useremail" value="" class="form-control" placeholder="请输入用户邮箱" required>
                        <input type="password" ng-model="user.password" name="password" value="" class="form-control" placeholder="请输入密码" required>
                        <div>
                            <button class="btn btn-lg btn-primary btn-block" ng-click="addUser(user)">注册</button>
                        </div>
                    </form>
                </div>
            </div>

        </div>


        <script src="app/scripts/vendor/jquery.min.js"></script>
        <script src="app/bower_components/angular/angular.min.js"></script>
        <script src="app/bower_components/angular-resource/angular-resource.min.js"></script>
        <script src="app/bower_components/angular-route/angular-route.min.js"></script>
        <script src="app/bower_components/angular-animate/angular-animate.min.js"></script>
        <script src="app/scripts/vendor/angular-image-cropper.js"></script>

        <script src="app/scripts/services/services.js" charset="utf-8"></script>
        <script src="app/scripts/controllers/Mcontroller.js" charset="UTF-8"></script>
        <script src="app/scripts/directives/directives.js" charset="utf-8"></script>
        <script src="app/scripts/vendor/bootstrap/js/bootstrap.min.js"></script>
        <script src="app/scripts/vendor/ui-bootstrap-tpls-0.12.0.min.js"></script>
        <script src="app/scripts/vendor/ng-file-upload.min.js"></script>
        <script src="app/scripts/vendor/ng-file-upload-shim.min.js"></script>
    </body>
</html>
